package homework2;

public class Test {
    public static void main(String[] args) {
        // 创 建经理对象
        Manager manager = new Manager("张三", 30, 5000, 2000);

        // 创建工程师对象
        Engineer engineer = new Engineer("李四", 25, 4000, 500);

        // 显示经理信息
        manager.displayInfo();
        System.out.println("工资总额：" + manager.calculateSalary());

        // 显示工程师信息
        engineer.displayInfo();
        System.out.println("工资总额：" + engineer.calculateSalary());

        // 获取员工总数
        int employeeCount = Employee.getEmployeeCount();
        System.out.println("员工总数：" + employeeCount);
    }
}
